home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / network / net_co41.zip / netcont_.exe / MENU-BOX.BAT < prev    next >
DOS Batch File  |  1994-03-31  |  7KB  |  245 lines

  1. @ECHO OFF
  2. REM ---------------------------------------------------------------------
  3. REM Batch programm as a menu for calling all programs written for
  4. REM the Ethernet Box
  5. REM                                             (C) RzK Doris Köpke 02/94
  6. REM
  7. REM Calling this file with commandline parameters:
  8. REM  1) NET-MENU GO
  9. REM         Net-Control is started at once and begins with the data
  10. REM         sampling process automatically
  11. REM  2) NET-MENU GO STOP
  12. REM         Additionally to 1) Net-Control is stopped daily to start the
  13. REM         batch programm TESTDISK.BAT. This checks the logical structure
  14. REM         of the harddisk and starts Net-Control again, if no error is
  15. REM         detected.
  16. REM  3) NET-MENU {program} [{parameter_list}]
  17. REM         The specified programm is started directly.
  18. REM         E.g.:  "NET-MENU EAK-TERM LPT1:"
  19. REM ---------------------------------------------------------------------
  20.  
  21. IF "%1x"=="x" GOTO START
  22. IF "%1"=="GO" GOTO NET-START
  23. IF "%1"=="go" GOTO NET-START
  24. %1 %2 %3 %4 %5 %6 %7 %8 %9
  25. :START
  26. BLUE
  27. @ECHO OFF
  28. ECHO ╔═════════════════════════════════════════════════╦═══════════════════════════╗
  29. ECHO ║  ETHERNET BOX II   software selection menu      ║ (C) RzK Doris Köpke 10/92 ║
  30. ECHO ╠═════════════════════════════════════════════════╩═══════════════════════════╣
  31. ECHO ║                (Select program by input of specified character:)            ║
  32. ECHO ╟─────────────────────────────────────┬───────────────────────────────────────╢
  33. ECHO ║ 1 - Terminal  COM1 9600 Baud        │ 6 - Net-Control                       ║
  34. ECHO ║                                     │                                       ║
  35. ECHO ║ 2 - Terminal  LPT1                  │ 7 - Net-Control with daily test of    ║
  36. ECHO ║                                     │     the logical harddiskstructure     ║
  37. ECHO ║ 3 - Ethernet Box configuration      │ 8 - Erroranalysis                     ║
  38. ECHO ║                                     │                                       ║
  39. ECHO ║ 4 - Bridge configuration            │ 9 - SNMP Monitor                      ║
  40. ECHO ║                                     │                                       ║
  41. ECHO ║ 5 - Send packets                    │                                       ║
  42. ECHO ╟─────────────────────────────────────┼───────────────────────────────────────╢
  43. ECHO ║ D - View files in current directory │ S - Save Net-Control configuration    ║
  44. ECHO ║                                     │     and all *.SDF files               ║
  45. ECHO ╟─────────────────────────────────────┼───────────────────────────────────────╢
  46. ECHO ║ N - Read new version of Net-Control │ R - Register Net-Control              ║
  47. ECHO ║     from floppy                     │ C - Configure Packet Driver           ║
  48. ECHO ║ M - New version of utility disk     │ E - End                               ║
  49. ECHO ╠═════════════════════════════════════╧═══════════════════════════════════════╣
  50. ECHO ║                                                                             ║
  51. ECHO ╚═════════════════════════════════════════════════════════════════════════════╝
  52. KEY 123456789SENMRDC Selection :
  53. IF ERRORLEVEL 16 GOTO P-SETUP
  54. IF ERRORLEVEL 15 GOTO VNDIR
  55. IF ERRORLEVEL 14 GOTO REGIST
  56. IF ERRORLEVEL 13 GOTO NEW-EAK-UTIL
  57. IF ERRORLEVEL 12 GOTO NEW-NET-CONT
  58. IF ERRORLEVEL 11 GOTO ENDE
  59. IF ERRORLEVEL 10 GOTO SAV-SDF
  60. IF ERRORLEVEL  9 GOTO NET-MON
  61. IF ERRORLEVEL  8 GOTO NET-ANA
  62. IF ERRORLEVEL  7 GOTO NET-C-TD
  63. IF ERRORLEVEL  6 GOTO NET-CONT
  64. IF ERRORLEVEL  5 GOTO EAK-PKT
  65. IF ERRORLEVEL  4 GOTO BR-KONF
  66. IF ERRORLEVEL  3 GOTO EAK-KONF
  67. IF ERRORLEVEL  2 GOTO TERM-LPT1
  68. IF ERRORLEVEL  1 GOTO TERM-COM1
  69. IF ERRORLEVEL  0 GOTO ENDE
  70.  
  71. GOTO ENDE
  72.  
  73. :TERM-COM1
  74. IF NOT EXIST EAK-TERM.EXE GOTO INST-UTIL
  75. EAK-TERM COM1 9600
  76. GOTO START
  77.  
  78. :TERM-LPT1
  79. IF NOT EXIST EAK-TERM.EXE GOTO INST-UTIL
  80. EAK-TERM LPT1
  81. GOTO START
  82.  
  83. :EAK-KONF
  84. IF NOT EXIST EAK-KONF.EXE GOTO INST-UTIL
  85. EAK-KONF
  86. GOTO START
  87.  
  88. :BR-KONF
  89. IF NOT EXIST BR-KONF.EXE GOTO INST-UTIL
  90. BR-KONF
  91. GOTO START
  92.  
  93. :EAK-PKT
  94. IF NOT EXIST EAK-PKT.EXE GOTO INST-UTIL
  95. EAK-PKT
  96. GOTO START
  97.  
  98. :NET-CONT
  99. CALL NC-START
  100. ECHO.
  101. ECHO.
  102. PAUSE
  103. GOTO START
  104.  
  105. :NET-START
  106. IF "%2"=="stop" GOTO NET-C-TD
  107. IF "%2"=="STOP" GOTO NET-C-TD
  108. CALL NC-START GO
  109. GOTO START
  110.  
  111. :NET-C-TD
  112. CALL TESTDISK.BAT
  113. GOTO START
  114.  
  115. :SAV-SDF
  116. IF NOT EXIST ADRESSEN.SDF GOTO SAV-ERROR
  117. MD SDF-SAVE                > nul
  118. COPY *.SDF SDF-SAVE        > nul
  119. COPY *.CFG SDF-SAVE        > nul
  120. REN *.SDF *.S$F            > nul
  121. COPY SDF-SAVE\*.SDF        > nul
  122. DEL *.S$F                  > nul
  123. ECHO.
  124. ECHO The configuration has been saved to a local subdirectory.
  125. ECHO.
  126. ECHO Additional save it to a floppy disk ? (Y/N)  :
  127. KEY YN
  128. IF ERRORLEVEL 2 GOTO START
  129. ECHO Save to which drive (A,B) :
  130. KEY AB
  131. IF ERRORLEVEL 2 GOTO DRV-B
  132. IF ERRORLEVEL 1 GOTO DRV-A
  133. GOTO START
  134. :DRV-A
  135. COPY *.CFG A: > nul
  136. COPY *.SDF A: > nul
  137. ECHO.
  138. ECHO Net-Control configuration saved to drive A:.
  139. ECHO.
  140. PAUSE
  141. GOTO START
  142. :DRV-B
  143. COPY *.CFG B: > nul
  144. COPY *.SDF B: > nul
  145. ECHO.
  146. ECHO Net-Control configuration saved to drive B:.
  147. PAUSE
  148. GOTO START
  149. GOTO START
  150. :SAV-ERROR
  151. SOUND TUUT TUUT
  152. ECHO.
  153. ECHO ╔═════════════════════════════════════════════════════════════════════════════╗
  154. ECHO ║         Before you can save your configuration files, you have              ║
  155. ECHO ║         to adjust Net-Control to your network.                              ║
  156. ECHO ║         At least define an addresslist of known addresses in                ║
  157. ECHO ║         the file ADRESSEN.SDF.                                              ║
  158. ECHO ╚═════════════════════════════════════════════════════════════════════════════╝
  159. ECHO.
  160. PAUSE
  161. GOTO START
  162.  
  163. :NET-ANA
  164. NET-ANA
  165. GOTO START
  166.  
  167. :NET-MON
  168. IF NOT EXIST NET-MON.EXE GOTO INST-UTIL
  169. NET-MON
  170. GOTO START
  171.  
  172.  
  173. :INST-UTIL
  174. SOUND KLICK TUUT KLICK
  175. ECHO.
  176. ECHO ╔═════════════════════════════════════════════════════════════════════════════╗
  177. ECHO ║         Before you can call this program, you have to install               ║
  178. ECHO ║         the software of the Ethernet Box utility disk to the                ║
  179. ECHO ║         current directory!                                                  ║
  180. ECHO ╚═════════════════════════════════════════════════════════════════════════════╝
  181. ECHO.
  182. ECHO.
  183. ECHO Do you want to install this software now?  (Y/N)  :
  184. KEY YN
  185. IF ERRORLEVEL 2 GOTO START
  186.  
  187. :NEW-EAK-UTIL
  188. ECHO In which drive is the disk with the Ethernet Box utilities (A,B) :
  189. KEY AB
  190. IF ERRORLEVEL 2 GOTO DRIVE-B
  191. IF ERRORLEVEL 1 GOTO DRIVE-A
  192. GOTO START
  193. :DRIVE-A
  194. A:EAK-UTIL
  195. PAUSE
  196. GOTO START
  197. :DRIVE-B
  198. B:EAK-UTIL
  199. PAUSE
  200. GOTO START
  201.  
  202. :NEW-NET-CONT
  203. ECHO In which drive is the disk with the new Net-Control version (A,B) :
  204. KEY AB
  205. IF ERRORLEVEL 2 GOTO DRIV-B
  206. IF ERRORLEVEL 1 GOTO DRIV-A
  207. GOTO START
  208. :DRIV-A
  209. A:INSTALL
  210. PAUSE
  211. GOTO START
  212. :DRIV-B
  213. B:INSTALL
  214. PAUSE
  215. GOTO START
  216.  
  217. :REGIST
  218. ECHO In which drive is the disk with the Net-Control authentisationcode ?
  219. ECHO Please enter a "-", if you don't have that disk at hand. (A,B,-) :
  220. KEY AB-
  221. IF ERRORLEVEL 3 GOTO REG-HERE
  222. IF ERRORLEVEL 2 GOTO REG-B
  223. IF ERRORLEVEL 1 GOTO REG-A
  224. GOTO START
  225. :REG-A
  226. NET-SNAP A:
  227. GOTO START
  228. :REG-B
  229. NET-SNAP B:
  230. GOTO START
  231. :REG-HERE
  232. NET-SNAP
  233. GOTO START
  234.  
  235. :VNDIR
  236. IF NOT EXIST VNDIR.EXE GOTO INST-UTIL
  237. VNDIR
  238. GOTO START
  239.  
  240. :P-SETUP
  241. P-SETUP
  242. GOTO START
  243.  
  244. :ENDE
  245.